USAGE: xfm inimg [-d] [-w file] [-t] [-L]
xfm iteratively evaluates moments of a convex shape up to 3rd order,
ARGUMENTS:
inimg: input image filename
(TIF)
OPTIONS:
-d: default
mode: evaluate moments of binary region
-w: write
file (.mdt) to disk
-t: generate
test filter array
-L: print
Software License for this module
Example:
xfm four.tif -w four.mdt
four.tif:
output:
...option w: write file four.mdt to disk
...executing recursion to obtain Y - matrix...
...row:... 50...100...150...200...250...300...350...400...450...500
...matrix multiplication to obtain moments
...coefficient arrays
...cm:
1.00 0.00 0.00 0.00
1.00 1.00 0.00 0.00
1.00 3.00 2.00 0.00
1.00 7.00 12.00 6.00
...cmt:
1.00 1.00 1.00 1.00
0.00 1.00 3.00 7.00
0.00 0.00 2.00 12.00
0.00 0.00 0.00 6.00
centroid:
...x_bar = 253.511780 y_bar = 252.634689
...m00 = 246190.000000
...moments:
m[0][0]/m00 = 1.000000
m[0][1]/m00 = 252.634689
m[0][2]/m00 = 85944.492188
m[0][3]/m00 = 33096648.000000
m[1][0]/m00 = 253.511780
m[1][1]/m00 = 63834.222656
m[1][2]/m00 = 21727924.000000
m[1][3]/m00 = 8384208384.000000
m[2][0]/m00 = 86549.234375
m[2][1]/m00 = 21825850.000000
m[2][2]/m00 = 7433114624.000000
m[2][3]/m00 = 2868250935296.000000
m[3][0]/m00 = 33413338.000000
m[3][1]/m00 = 8451009536.000000
m[3][2]/m00 = 2878965284864.000000
m[3][3]/m00 = 1109942559834112.000000
246190.000000
...central moments:
...mu00 = 246190.000000, mu11 = -52105408.000000
...mu02 = 5445772288.000000, mu20 = 5485362688.000000
...rg = 210.715958
...dent = -0.003622
Copyright (C) 1999 MLMSoftware Group, LLC.